﻿using MarketplaceWebService;
using MarketplaceWebService.Model;
using MODEL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SysController
{
    public static class AmazonController
    {
        #region 1.0 获取Amazon受权密钥 +static List<SalesPlatformSiteInfoAccess> GetAccess()
        /// <summary>
        /// 获取Amazon受权密钥
        /// </summary>
        /// <returns></returns>
        public static List<SalesPlatformSiteInfoAccess> GetAccess()
        {
            return SysHelper.OperateContext.CurrentContext.BllSession.ISalesPlatformSiteInfoAccess_BLL.GetListByWhere(s => s.IsDel == false && s.SalesPlatformSiteInfoId == 2);
        } 
        #endregion


        public static void TEST(string awsAccessKeyId, string awsSecretAccessKey, string applicationName, string applicationVersion)
        {
            MarketplaceWebServiceConfig config = new MarketplaceWebServiceConfig();
            SubmitFeedRequest request = new SubmitFeedRequest();
            request.FeedType = FeedTypeEnum._POST_PRODUCT_DATA_.ToString();


            MarketplaceWebServiceClient client = new MarketplaceWebServiceClient(awsAccessKeyId, awsSecretAccessKey, applicationName, applicationVersion);
            //client.SubmitFeed

            
        }


    }
}
